﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace OnlineFamilyCalendar.Common.Configuration
{
    public class OnlineFamilyCalendarRegistrationSection : ConfigurationSection
    {
        private static readonly ConfigurationProperty _encryptionKey;

        static OnlineFamilyCalendarRegistrationSection()
        {
            _encryptionKey = new ConfigurationProperty("encryptionKey", typeof(string), "",
                null, null, ConfigurationPropertyOptions.IsRequired);
        }

        public OnlineFamilyCalendarRegistrationSection() : base()
        {
            this.Properties.Add(_encryptionKey);
        }

        public string EncryptionKey
        {
            get { return this["encryptionKey"] as string; }
        }
    }
}
